Built-in¶
This section uses the display driver nv3051f1, TP driver gt911, and backlight driver nw9527 as examples to add a new display using the display driver built-in method. Refer to the following for details:
Copy Similar Display Driver Code and Add It to the Build¶
Find a similar and already adapted display driver in the SDK\customer\peripherals directory,
Copy the entire directory and rename the directory to “nv3051f1”
Also rename the display driver .c file inside to nv3051f1.c, and modify its contents.
Change the depend macro in the SConscript file inside to the previously added
LCD_USING_NV3051F1, so that the newly added file is included in the build.
Copy Similar TP Driver Code and Add It to the Build¶
Find a similar and already adapted TP driver in the SDK\customer\peripherals directory,
Copy the entire directory and rename the directory to “gt911”
Also rename the display driver .c/.h files inside to gt911.c/.h, and modify their contents.
Change the depend macro in the SConscript file inside to the previously added
TSC_USING_GT911, so that the newly added file is included in the build.
Copy Similar Backlight Driver Code and Include It in the Build¶
In the SDK\customer\peripherals directory, find the aw9364 directory,
Copy the entire directory, and rename the directory to “nw9527”
Rename the driver .c file inside to nw9527.c, and modify its contents.
Change the depend macro in the SConscript file inside to the previously added
BL_USING_NW9527, so that the newly added file is included in the build
**Note**: Change the driver name here to the corresponding display driver name. Add whichever driver is needed (display driver, TP, or backlight)